package com.example.demo.service.impl;

import com.example.demo.mapper.TpaperMapper;
import com.example.demo.pojo.Tpaper;
import com.example.demo.service.ITpaperService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service("TpaperService")
public class TpaperServiceImpl implements ITpaperService {

    @Resource
    private TpaperMapper TpaperDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        // TODO Auto-generated method stub
        return this.TpaperDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Tpaper Tpaper) {
        // TODO Auto-generated method stub
        return this.TpaperDao.insert(Tpaper);
    }

    @Override
    public int insertSelective(Tpaper Tpaper) {
        // TODO Auto-generated method stub
        return this.TpaperDao.insertSelective(Tpaper);
    }

    @Override
    public Tpaper selectByPrimaryKey(Integer id) {
        // TODO Auto-generated method stub
        return this.TpaperDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Tpaper Tpaper) {
        // TODO Auto-generated method stub
        return this.TpaperDao.updateByPrimaryKeySelective(Tpaper);
    }

    @Override
    public int updateByPrimaryKey(Tpaper Tpaper) {
        // TODO Auto-generated method stub
        return this.TpaperDao.updateByPrimaryKey(Tpaper);
    }

    @Override
    public List<Tpaper> selectTpaper() {
        // TODO Auto-generated method stub
        return this.TpaperDao.selectTpaper();
    }

    @Override
    public List<Tpaper> selectTpaperByName(String name) {
        return this.TpaperDao.selectTpaperByName(name);
    }

    @Override
    public List<Tpaper> selectTpaperByTid(Integer tid) {
        return this.TpaperDao.selectTpaperByTid(tid);
    }
}
